if (!window['console']) {
    window.console = {};
    var methods = ['log', 'debug', 'info', 'warn', 'error'];
    for (var i = 0; i < methods.length; i++) {
        var method = methods[i];
        window.console[method] = function() {
            // empty
        };
    }
}
